package com.zs.service;

import com.zs.spring.*;

/**
 * @Author: zhengshan
 * @CreateTime: 2024-06-17
 * @Description: 测试spring源码service类
 * @Version 1.0
 */
@Component
//@Scope("prototype")
public class TestService implements BeanNameAware, InitializingBean ,TestInterface{

    @Autowired
    private OrderService orderService;

    private String beanName;

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {

    }

    @Override
    public void test() {
        System.out.println("orderService" + orderService);
    }

}
